<?php

namespace App\Http\Controllers\QingShanSupplier;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class MenuController extends Controller
{
    // 取左侧权限菜单
    public function getList(Request $req)
    {
        try {
            $leftmenu = [
                [
                    'name' => '订单管理',
                    'url' => 'order/list',
                    'icon' => '',
                    'label' => 'order-list',
                    'submenu' => [
                        [
                            'name' => '订单管理',
                            'url' => 'order/list',
                            'icon' => 'ios-cube-outline',
                            'label' => 'order-list',
                            'there' => [
                                [
                                    'name' => '拼多多订单',
                                    'url' => 'order/pddlist',
                                    'icon' => '',
                                    'label' => 'order-pddlist'
                                ]
                            ],
                        ]
                    ]
                ]
            ];
            return $this->resData(200, '获取成功...', $leftmenu);
        } catch (\Throwable $e) {
            return $this->resData(500, '获取失败，请稍后再试...');
        }
    }
}
